/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_user_orderEntity
 * @author wangjianxin
 * @version 2018-10-02
 */
@Table(name="wx_user_order", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_openid", attrName="userOpenid", label="user_openid"),
		@Column(name="activity_id", attrName="activityId", label="购买的活动id"),
		@Column(name="order", attrName="order", label="order"),
		@Column(name="price", attrName="price", label="price"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxUserOrder extends DataEntity<WxUserOrder> {
	
	private static final long serialVersionUID = 1L;
	private String userOpenid;		// user_openid
	private Long activityId;		// 购买的活动id
	private String order;		// order
	private Integer price;		// price


	public WxUserOrder() {
		this(null);
	}

	public WxUserOrder(String id){
		super(id);
	}
	
	@Length(min=0, max=200, message="user_openid长度不能超过 200 个字符")
	public String getUserOpenid() {
		return userOpenid;
	}

	public void setUserOpenid(String userOpenid) {
		this.userOpenid = userOpenid;
	}
	
	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}
	
	@Length(min=0, max=200, message="order长度不能超过 200 个字符")
	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}
	
}